Dynamic initiation of automated call

ABSTRACT

Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, relating to synthetic call initiation. In some implementations, a method includes receiving, by a call triggering module of a call initiating system for placing calls and conducing conversations between a bot of the call initiating system and human callee during the calls, data indicating a first event, determining, by the call triggering module and using the data indicating the first event, that the first event is a trigger event that triggers a workflow for the call initiating system that begins with initiating a phone call, selecting, based on the determined trigger event, a particular workflow, and in response to the selecting, initiating a phone call to a callee specified by the particular workflow.

CROSS-REFERENCE TO RELATED APPLICATION

This application claims the benefit of U.S. Provisional PatentApplication No. 62/349,396, filed on Jun. 13, 2016, which isincorporated by reference in its entirety.

FIELD

This specification relates to natural language processing.

BACKGROUND

Users may need to collect types of information that is not easilyobtained without human interaction. For example, in order to verify orcollect data from multiple places of business or organizations, a usermay need to call each of the businesses or organizations in order togather the information. While web search engines can assist users withsuch tasks by providing contact information for a service or business,the user must still call the service or business themselves to completethe task themselves.

In order to maintain a database of information gathered from multipleplaces of business or organizations, a human operator can initiateautomated calls to large numbers of businesses to collect data, butselecting the callees (e.g., all restaurants in a particular town thatserve the same cuisine) and placing the calls can be time-consuming whenperformed manually. Moreover, determining when and whether to place thecalls generally requires human analysis of existing data in order toidentify a need for verification, updating, or supplemental information.

Users may also wish to perform tasks such as make appointments or hire aservice. However, there is generally a person with whom a user mustinteract to complete the desired task. For example, a user may berequired to call and speak with a hostess in order to make a reservationat a small restaurant that does not have a website. In some cases, evenwhen users place the calls themselves, they may encounter automatedphone trees that often accept only a limited set of user responses.

SUMMARY

A system can assist a user with various tasks that involve communicatingwith a human through a phone call, or with an automated system operatedthrough a phone (e.g., IVR), by determining, from data received by thesystem, whether to initiate a call to a particular number. Once a callis placed, the system may obtain information, provide information to athird party, execute an action, e.g., on behalf of the user, and soforth. In certain examples, the system participates in a dialog with ahuman on the user's behalf. The dialog can occur via a telephoneconnection between the system and the human. In certain examples, thesystem may include, operate with, or form a part of a search enginefollowing a workflow associated with intents of search engine users whosubmit queries involving tasks to be completed. The system may executethe tasks for the users through at least one autonomous orsemi-autonomous software agent (“bot”) operations.

In one general aspect, a method includes receiving, by a call triggeringmodule of a call initiating system for placing calls and conductingconversations between a bot of the call initiating system and a humancallee during the calls, data indicating a first event; determining, bythe call triggering module and using the data indicating the firstevent, that the first event is a specific trigger event of a pluralityof possible trigger events that triggers a workflow for the callinitiating system that begins with initiating a phone call; selecting,based on the determined trigger event, a particular workflow frommultiple possible workflows, the particular workflow corresponding tothe determined trigger event; and in response to the selecting, i)initiating a phone call to a callee specified by the particularworkflow, and ii) executing the workflow as a two-way conversationbetween the bot and the callee.

Implementations may include one or more of the following features. Forexample, the determined trigger event is an inconsistency of a valueassociated with a first data source and a corresponding value associatedwith a second data source. The data indicating the first event may beprovided by a user. The determined trigger event may be a user request.The determined trigger event may be a particular type of event that isone of: a weather event, an entertainment event, or a seasonal event.The determined trigger event may be a trend detected in search requestssubmitted to a search engine. The determined trigger event may be apassing of a predetermined period of time.

In another general aspect, a method includes determining, by a taskmanager module, that a triggering event has occurred to provide acurrent status of a user call request; determining, by the task managermodule, the current status of the user call request; generating arepresentation of the current status of the user call request; andproviding, to the user, the generated representation of the currentstatus of the user call request.

Implementations may include one or more of the following features. Forexample, the determined trigger event may be a user request for status.The determined trigger event may be an operator interaction to providestatus to a user after the operator has reviewed session informationassociated with the user call request. The determined trigger event maybe a status update event. The representation of the current status maybe a visual representation. The representation of the current status maybe an oral representation. Providing the user the generatedrepresentation of the current status of the user call request mayinclude determining a convenient time and method for delivering thecurrent status to the user.

In another general aspect, a method for transitioning a phone call awayfrom a bot includes: analyzing, by a call initiating system, a real-timeconversation between a first human and the bot during a phone callbetween the first human on a first end of the phone call and the bot ona second end of the phone call; determining, by the call initiatingsystem based on analysis of the real-time conversation, whether thephone call should be transitioned from the bot to a second human on thesecond end of the phone call; and in response to determining that thephone call should be transitioned to a second human on the second end ofthe phone call, transitioning, by the call initiating system, the phonecall from the bot to the second human.

Implementations may include one or more of the following features. Forexample, analyzing the real-time conversation between the first humanand the bot during the phone call may comprise: determining strainduring the phone call based on conduct, demeanor, tone, annoyance level,language, or word choice of the first human. The method may includedetermining an increase in strain during the phone call when the botrepeats itself, apologizes, or asks for clarification. The method mayinclude determining an increase in strain during the phone call when thehuman corrects the bot or complains about the quality of the call. Themethod may include determining a decrease in strain during the phonecall when the bot appropriately responds to dialog of the first human.Analyzing the real-time conversation between the first human and the botduring the phone call may include determining a confidence level of thecall initiating system that a task of the phone call will be completedby the bot. Analyzing the real-time conversation between the first humanand the bot during the phone call may include determining that the firsthuman asked for the phone call to be transitioned to another human.Analyzing the real-time conversation between the first human and the botduring the phone call may include determining that the first human hasmocked the bot or asked if the bot is a robot. Determining whether thephone call should be transitioned from the bot to a second human mayinclude determining that the strain is above a predefined threshold; andin response to the strain being above a predefined threshold,determining that the phone call should be transitioned from the bot tothe second human. Analyzing the real-time conversation between the firsthuman and the bot during the phone call may include keeping track of oneor more events in the conversation. Determining whether the phone callshould be transitioned from the bot to a second human may include usinga feature-based rule set that determines whether the one or more eventsin the conversation meet criteria of a rule; and in response todetermining that the one or more events in the conversation meet thecriteria of a rule, determining that the phone call should betransitioned from the bot to the second human.

Analyzing the real-time conversation between the first human and the botduring the phone call may include identifying intents from theconversation and identifying historical intents and historical outcomesfrom previous conversations. Determining whether the phone call shouldbe transitioned from the bot to a second human may include sendingintents from the conversation, historical intents, or historicaloutcomes to one or more machine learning models; and determining whetherthe phone call should be transitioned based on the intents, historicalintents, or historical outcomes. The second human may be a humanoperator. The bot may use the same voice as the human operator so thatthe transition from the bot to the second human is transparent to thefirst human. The second human may be the user for which the bot isconducting the phone call. The method may include terminating the phonecall when transitioning the phone call from the bot to the second humantakes longer than a predetermined amount of time. The method may includeterminating the phone call instead of transitioning the phone call to ahuman.

Other implementations of this and other aspects include correspondingmethods, apparatus, and computer programs, configured to perform theactions of the methods, encoded on computer storage devices. One or morecomputer programs can be so configured by virtue of having instructionsthat, when executed by data processing apparatus, cause the apparatus toperform the actions.

Particular embodiments of the subject matter described in this documentcan be implemented so as to realize one or more of the followingadvantages. The amount of data storage required for various data sourcesis reduced because only one set of confirmed data is stored instead ofmultiple sets of unconfirmed data. For example, instead of storing threedifferent unconfirmed sets of business hours for a particular grocerystore (e.g., one set collected from the storefront, one set collectedfrom the store's website, and one set collected from the store'sanswering machine), a data source can store one set of confirmed storehours obtained from a call to a human representative of the grocerystore.

By automatically detecting trigger events that indicate to the callinitiating system that a call is to be initiated, the amount of humaninput required to perform operations such as collecting data fromcallees, scheduling appointments, or providing information to thirdparties is reduced. Additionally, because calls are only initiated whena trigger event occurs, the amount of computer resources needed tomaintain a database of information is reduced due to the reduction incalls placed. The system automatically places calls to particularcallees or sets of callees, reducing the amount of analysis that a humanmust perform and the amount of data that a human must monitor.

Additionally, the system conducts conversations on behalf of humanusers, further reducing the amount of human input required to performparticular tasks. The call initiating system can coordinate multiplecalls at the same time. For example, a user may wish to make areservation for thirty minutes in the future. The system can call eachrestaurant specified by the user and carry out a conversation with arepresentative on the other line. An employee of a first restaurantcalled may suggest that a reservation can be made, but the diner mustsit at the bar. An employee of a second restaurant called may suggestthere is a wait time of twenty minutes, and an employee of a thirdrestaurant called may inform the system that the third restaurantrequires that diners finish their meals within one hour, and therefore atable will be ready within the hour. The system can make the call toeach of the three restaurants in parallel, consult the user bypresenting his options and receiving a response, and make a reservationat the restaurant most suitable for the user based on his response whiledeclining all other reservations. The automated call initiating systemis efficient than a human counterpart since the automated system canmake these calls all at once. The human assistant is not able to easilymake all of these restaurant calls in parallel.

The details of one or more embodiments of the subject matter describedin this specification are set forth in the accompanying drawings and thedescription below. Other features, aspects, and advantages of thesubject matter will become apparent from the description, the drawings,and the claims.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1A shows an example block diagram of a system for a call initiatingsystem that places calls and conducts conversations between a bot of thecall initiating system and a human during the calls.

FIG. 1B shows an example block diagram of a system for a call initiatingsystem that places calls and conducts conversations between a bot of thecall initiating system and a human during the calls.

FIG. 1C shows an example user interface through which a user may entermore details about the request.

FIG. 1D shows an example of a user speaking to a bot in order to make arequest.

FIG. 2A is a flow diagram that shows an example of a process forcompleting a task assigned by a user.

FIG. 2B is a flow diagram that shows another example of a process forcompleting a task assigned by a user.

FIG. 3 shows an example workflow for a process executed by the system.

FIG. 4 is a block diagram of the triggering module.

FIG. 5 is a flow diagram that shows an example of a process forinitiating a phone call.

FIG. 6 is a block diagram of the task manager module of the system.

FIG. 7A illustrates an operator dashboard that shows information aboutprogress of existing tasks.

FIG. 7B illustrates an operator review screen for reviewing one of theuser requested tasks.

FIG. 8 is a flow diagram that shows an example of a process forproviding the status of a task.

FIG. 9A shows a visual status of the haircut appointment request of FIG.1B while the appointment scheduling is in progress.

FIG. 9B shows a visual status of the haircut appointment request of FIG.1B once the appointment has been successfully scheduled.

FIG. 10A illustrates an oral status request and update of the restaurantreservation request of FIG. 1C.

FIG. 10B illustrates an oral status update provided by the systemwithout prompting by the user for the restaurant reservation request ofFIG. 1C.

FIG. 11 shows an example process 1100 for transitioning a phone callfrom a bot to a human.

FIG. 12 is a schematic diagram that shows an example of a computingdevice and a mobile computing device.

Like reference numbers and designations in the various drawings indicatelike elements.

DETAILED DESCRIPTION

The present disclosure describes a technology that allows an automatedor semi-automated system, referred to herein as a “bot,” to communicatewith people, by placing calls and independently conducting conversationswith a human during the calls. The bot receives and monitors data todetect trigger events that indicate that a call should be initiated. Thebot works through predefined workflows, or sequences of repeatablepatterns of operations, each linked by abstract descriptions ofoperations to be performed, or intents. Essentially, the bot is able touse these workflows to determine how to react and what to say to a humanin order to perform helpful tasks for a user.

The system handles various tasks, received as queries, such as: “book atable for two at Yves Saint Thomas Restaurant for Thursday,” “my sink isleaking and I need a plumber! It's after 10 p.m.!”, etc.

A user who wishes to schedule an appointment, purchase an item, requestservices, etc., may be required to perform multiple searches and placemany calls before completing the task they set out to accomplish. In afirst use case, booking a table at a restaurant, the user might searchfor the restaurant on a search engine. In some examples, if therestaurant happens to be on a website or application, the query may beexecuted on the website or application (or through integration with thewebsite or application), and if not, the user might call the restaurantand negotiate the reservation.

As an example, the system may be used to place calls for a user. Thesystem communicates with businesses and other services to complete tasksrequested by users. In some examples, the bots perform much of thecommunication. In some examples, a human operator may review and verifythe success of operations performed by the bots. In some examples, thehuman operator performs the actions, and the bots learn from the humanoperators' communications to improve their automated communicationskills.

In a second use case, a user wishes to find a plumber outside of normalbusiness hours. Such queries may be more difficult to process. Forexample, if the user were to search for a plumber manually, he mightsearch for plumbers on a search engine and give a few of them a call.The user may have to explain to each plumber the time constraints, wherethey are located and the nature of the issue, and obtain a priceestimate. This can be very time consuming.

Similarly, for a third use case, checking if a local store has a productin stock, the user might have to search for local stores and call eachone to determine whether the store has the particular item or productthey are looking for.

In addition to assisting users with specific tasks, the system canupdate an index of information, such as business open hours, servicesoffered, etc. The system can be automatically triggered to update dataresponsive to detecting missing, aging, inconsistent data, etc.Generally, in order to obtain such information, a user may need toindividually check each business or data source.

The system provides many advantages, including reducing the amount ofhuman input required to complete certain tasks that involve initiating aphone call. For example, the system can automatically initiate phonecalls based on determining that certain triggering criteria have beenmet, such as an inconsistency between services offered by a salon andservices listed on a third party reservation website. The system canreduce friction for transaction queries, for example, by detectingfrustration or discomfort of a human on one end of the phone call andending the call or making a change to the way the conversation isconducted. The system can connect users in developing countries withservices, such as transportation or educational services. The system canalso connect users with low tech industries that don't have websites ordigital presences. Furthermore, the system is scalable for differentapplications, even compared to the largest aggregators.

FIG. 1A shows an example block diagram of a system for a call initiatingsystem that places calls and conducts conversations between a bot of thecall initiating system and a human 104 during the calls. Each componentshown in diagram 100 will be described in detail below.

The system 100 includes various components and subsystems that worktogether to allow a bot to communicate effectively with the human 104.The system 100 may include a communication framework or platform 102, adialer 106, a sound system 108, a call triggering module or triggermodule 110, an audio package 112, a session recorder 114, a sessionsstorage 116, a text-to-speech module 118, a speech endpoint detector120, stored text-to-speech results or recordings 122, an intent-to-textmodule 124, a speech-to-text module 126, a speech application programinterface (API) 128, a text-to-intent module 130, a flow manager 132, anoperator controller 134, and a bailout module 136. In someimplementations, the system includes all modules. In otherimplementations, the system includes a combination of these modules. Forexample, in one implementation, the text-to-intent layer is unnecessaryand the intent is directly given to the speech synthesis module.

FIG. 1B shows an alternative example block diagram of a system for acall initiating system that places calls and conducts conversationsbetween a bot of the call initiating system and a human during thecalls. In this example, the communication platform 102 is replaced witha client entry point for user requests and a telephony signaling serverfor other requests, i.e., inbound calls from business. The system sendsboth types of requests to a telephony server (196) that makes the callwith a bot service (195) conducting the call from the other end. In someimplementations, the bot service (195) includes a dialog model (198) anda language model (199) to enable the bot service to conduct human-likephone conversations. The telephony server (196) may include a TTS model(197). A speech recognizer (191) and/or audio mixer (194) may provideinformation for the telephony server (196) to understand and respondback to the human on the other end of the phone call (190). Operators(134) monitor calls using a task user interface (160) and a curationuser interface (170), The operators (134) can review recorded calls fromthe recording studio and evaluation TTS (114). A call player (162) willreplay calls back to the operators (134). Operators can schedule callsusing a local agent (175) to initiate phone calls through the telephonyserver (196).

In the implementation of FIG. 1A, the communication platform 102 allowsthe bot to contact external actors by performing tasks such as placingcalls, receiving inbound calls from businesses or users (104, 144), orcontacting target business. The communication platform 102 also allowsthe bot to receive requests from a user to make calls on the user'sbehalf.

In some implementations, a user requests a call to another user orbusiness through interaction with a user interface or through a speechrequest. These user requests may be for assistant-type tasks such as:booking an appointment, making a restaurant reservation, finding a dogwalker, or figuring out which store has an item that the user would liketo purchase.

FIG. 1C shows an example user interface through which a user may entermore details about the request. A user may initiate a request byclicking a “book” button or interacting with the user interface in someother way. For example, if the user would like to make a haircutappointment, the user may interact with a website associated with asalon where the user would like to get a haircut. The user mayalternatively interact with a search results list that includes thesalon as a result in the search results or with a user interface showingthe salon on the map. Any of these interfaces may allow the user torequest a call. The user may enter the details of the user's requestsuch as: the professional stylist the user would like to see, thecategory for the service the user would like to have done, and the dateand time for the service. As shown in FIG. 1B, the user may click a“Continue with booking” button or take some other action to indicatethat a request for a hair appointment is being made.

FIG. 1D shows an example of a user speaking to a bot in order to make arequest. After the user speaks a request to the bot, the bot mayacknowledge the request. The bot may also request additional informationabout the request from the user. For example, if the user speaks arequest to the bot about making a haircut, the bot may ask forinformation regarding where the user would like the haircut appointment,the day the haircut appointment should be scheduled, and what kind ofhaircut service the user would like to schedule.

A user may make a task request to the system at a time when the taskcannot be performed. For example, the user may request a call toschedule a haircut appointment at 11 pm at night when all haircut salonsare closed. Therefore, the system may store the request in the taskinformation storage to be initiated and completed at a later date ortime, such as during the open hours for the salon as otherwisedetermined by or obtained by system 100.

In some implementations, the system provides the user with initialfeedback that there will be a delay in processing the request. Forexample, when the user makes the request to call to schedule a haircutappointment at 11 pm when the salons are closed, the system provides theuser with a visual, audio, or some other indication that since the salonis closed, there will be a delay in completing the task until the systemcan reach the salon once it opens.

In some implementations, the task information storage 150 storesinformation about each task such as: the name of the user requesting thetask, the one or more people or places to call, the type of taskrequested, the method in which the task request was made, details aboutthe task that are type specific, details about the activities that havebeen done to complete the task, the start date of the task, thecompletion date of the task, the time of the last status update to therequesting user, the operator who double-checked the call task, the userrequested end date for the task, and the current status of the task.

In some implementations, a task manager module 160 determines when toschedule calls to people or businesses. The task manager module 160monitors tasks from the task information storage 150 and determines theappropriate time to schedule the received tasks. Some tasks areimmediately scheduled while other tasks are scheduled after certaintriggering events occur.

In many situations, there will be a human, such as the human 104, on theother end of a call placed by the system 100. The human 104 can be arepresentative of an organization that the bot is attempting to contact.In some examples, communication platforms are used in order to callbusinesses. The present system 100 can be integrated with thecommunication platforms. For example, the present system 100 can use aframework for testing web applications to programmatically operate a webbrowser and use a web-based teleconferencing service. The system 100 cancreate and use several communication platform accounts. In someexamples, the system 100 can automatically alternate between differentcommunication platform accounts to avoid throttling of call speed.

The dialer 106 facilitates initiating, or placing, the calls that thebot conducts. The dialer 106 is communicably connected to thecommunications platform 102. The dialer 106 provides instructions to thecommunications platform 102 to initiate a phone call to a particularcallee selected by the dialer 106. For example, the dialer 106 can playaudio tones corresponding to digits of a phone number. Once a call isplaced, the system 100 can conduct a conversation with the human calleeon the other end of the line.

The dialer 106 can receive instructions to initiate a call to aparticular callee. For example, the dialer 106 can receive datacontaining instructions from other modules in the system 100 such as thetrigger module 110 or the flow manager 132.

The trigger module 110 detects trigger events, or particular events thatindicate that the system 100 should initiate a call to a particularcallee. The trigger events can be events of a predetermined type. Forexample, a user of the system 100 can specify particular types oftrigger events. The trigger events can include explicit actionsperformed by a user of the system 100, a detected pattern in dataprovided to the trigger module 110, a predetermined period of timepassing since a particular event occurred, and various other types ofevents. In response to detecting a trigger event, the trigger module 110provides instructions to the dialer 106 to initiate a call to aparticular callee, or to the flow manager 132 to select a node of aparticular workflow or provide instructions to the dialer 106.

The sound system 108 is used to record and play audio. In some examples,three virtual streams are set up: (a) incoming audio from a phone orteleconferencing service to the system 100; (b) outgoing audio from thesystem 100 back to the communication platform; (c) a mixed streamcombining a and b, and are used to record the entire call. The soundsystem 108 uses the audio packages 112 to perform the communicationsthrough the communications platform 102.

The audio packages 112 are used to communicate with the sound system108. In some examples, the present system 100 includes an audio modulethat wraps the audio package 112 and handles a continuous stream ofincoming audio packets. The module also records every incoming packet,and allows to playback pre-recorded audio files. The present system 100uses various bit depths, sampling frequencies, packet sizes, etc.

The system 100 can record incoming and outgoing conversations conductedby the bot. The audio package 112 can enable the system 100 to record aparticular session, or call, using the session recorder 114. In someexamples, the session recorder 114 can record the portion of theconversation conducted by the bot by recording the bot's speech as it isgenerated. In other examples, the session recorder 114 can record theportion of the conversation conducted by the bot by recording the bot'sspeech externally as it is output by the communications system 102 tothe human 104. The session recorder 114 can record responses of thehuman 104 as well.

The session recorder 114 stores the recorded session data in thesessions storage 116. The recorded session data can be stored as audiodata or as feature data that represents the audio data. For example, therecorded session data can be stored as vectors that store values forparticular features of the audio data of the session. The sessionsstorage 116 can be a local database, a remote server, physical memorywithin the system 100, or any of various other types of memory.

A speech endpoint detector 120 simplifies conversations between the botand a human on the other side of the line. In order to simplify theconversation, it is sectioned into individual sentences, discretelyswitching between the human and the bot. The speech endpoint detector120 is responsible for receiving the continuous input audio stream fromthe audio package 112 and converting it into discrete sentences.

The speech endpoint detector 120 detects endpoints of speech. In oneimplementation, the speech endpoint detector 120 operates in two states:waiting for speech; and waiting for silence. The speech endpointdetector 120 alternates between these states as follows: each audiopacket is examined by comparing its root-mean-square-deviation (RMSD) toa predefined threshold. A single packet is considered as “silence” ifits RMSD is below this threshold. Whenever a non-silence packet isreceived, the module will switch from the “waiting for speech” state tothe “waiting for silence” state. The module will switch back only aftera period of consecutive silence packets lasting a predefined period oftime, depending on the state of the entire system, is received.

In some implementations, during the “waiting for sound” period, thespeech endpoint detector 120 fabricates pure-silence packets (onefabricated packet per ten real packets) and transmits them to thespeech-to-text module 126. The fabricated packets can avoiddisconnections from the speech API 128. During the “waiting for silence”period, the speech endpoint detector 120 transmits packets of silencefrom the stream for up to a predefined period of time (useful forbaseline noise estimation) and then transmits all of the audio packets.

In other implementations, the speech endpoint detector 120 uses machinelearning, neural networks, or some form of deep learning trained toobserve the intonation and language context to find endpoints.

In some examples, the speech endpoint detector 120 considers what wassaid, the intonation of the speaker, etc., when determining how to parsea particular stream of audio input. For example, the speech endpointdetector 120 can determine that a particular human callee 104 has atendency to end sentences with a low inflection, and speech endpointdetector 120 can predict the end of a sentence spoken by the callee 104when a drop in inflection is detected. A speech endpoint detector 120can adjust thresholds dynamically during the call based on thesignal-to-noise ratio in a time frame.

The speech-to-text module 126 converts the audio data parsed by thespeech endpoint detector 120 into text that can be analyzed for intentthat is used to select the bot's next response. The output of thespeech-to-text module 126 is an ordered list of speech options, and insome cases, a confidence for the best option is provided. The speechrecognition process includes two major components: the acoustic moduleand the language module. For the acoustic module, the system can use amodel trained from recordings of people talking directly to their phone.A neural network may be used by the model, and in some examples, thefirst layer of the neural network may be re-trained to account for thevocoders present in a phone call. A vocoder is a voice codec thatproduces sounds from an analysis of speech input. The neural network mayalso be re-trained to account for background noise which differs betweencalls to businesses and personal phone calls. The language module may bebuilt using a system that biases the language module based on pastexperience of the system. In some examples, the bias may be configuredautomatically. In some examples, this bias is configured manually. Insome examples, the language-bias configuration changes betweenverticals.

The speech-to-text module 126 uses the context of a call in order tobias the language module based on what the person from other side of theconversation is predicted to say. For example, the system's bot asks,“Are you open on Tuesday?” Based on this question, there is a highlikelihood that the person on the other side of the conversation willrespond with an answer such as, “no, we are closed” or “yeah, sure.” Thebot learns the likely responses based on past calls and uses predictionsto understand the incoming audio. The bot can predict full sentenceresponses, but the bot may also predict phrases. For example, after thebot says: “we have seven people in our party,” the bot may expect thephrase: “you said seven people?” The bot may also expect the phrase,“you said eleven?” since seven and eleven sound similar. The bot mayalso expect with some lower chance for a response such as, “you saidtwo?” The bot can assign probability weight for each phrase based on itspredictions.

In some implementations, the speech-to-text module 126 uses the speechAPI 128 to convert the audio data into text. In some examples, thespeech API 128 uses machine learning to convert the audio data intotext. For example, the speech API 128 can use models that accept audiodata as inputs. The speech API 128 may use any of a variety of modelssuch as decision trees, linear regression models, logistic regressionmodels, neural networks, classifiers, support vector machines, inductivelogic programming, ensembles of models (e.g., using techniques such asbagging, boosting, random forests, etc.), genetic algorithms, Bayesiannetworks, etc., and can be trained using a variety of approaches, suchas deep learning, perceptrons, association rules, inductive logic,clustering, maximum entropy classification, learning classification,etc. In some examples, the speech API 128 may use supervised learning.In some examples, the speech API 128 uses unsupervised learning. In someexamples, the speech API 128 can be accessed by the speech-to-textmodule 126 over a network. For example, the speech API 128 can beprovided by a remote third party on a cloud server.

To address the synchronizing of dialog, such as determining the contextin which a person was speaking in order to determine naturalopportunities for response by the bot, the system 100 can identify anintent. An intent is a formal-language representation of a singlesemantic meaning in a sentence, either said by a human or by the bot. Insome implementations, the system 100 ignores any intent received from ahuman between the last intent received and the bot's reply in order forthe bot to produce a response relevant to the most recent sentencespoken by the human. The system 100 can, however, use previous intentsto inform future responses. For example, the system can mark intentsreceived before the most recent intent received as ANCIENT, parse theANCIENT intent, and store it for offline evaluation. In some examples,various other forms of handling logic may be used.

While most of the system 100 is use case agnostic, some parts of thesystem 100 are either manually configured or fully programmed for aspecific use case, namely a system vertical. A vertical is essentiallycomposed of a schema of intents and business logic code. Intents in theschema are an internal formal-language representation of a singlesemantic meaning in a sentence, either said by the human or by the bot.For example, in the opening-hours extraction vertical, we have anAreYouOpen {date:tomorrow}” bot intent, and a corresponding “WeAreClosed{date_range: Sep}” human intent. The process in which incoming audiofrom the human is transformed into an intent is referred to herein asIntent Resolution. The opposite process (transforming a bot intent intospeech) is referred to as Intent to Speech. While the schema isconfigured per vertical, most of the code that learns and classifies theintents is generic and used across verticals. In some examples, only thelanguage-specific parts of the system reside in the intent resolutionand intent to speech configurations.

The logic code can be programmed per vertical (sharing some common code)and determines the bot behavior for every possible situation, defined bythe context of the call (the input parameters and what happened so far),as well as the incoming human intent. In one implementation, speech ischanged to text, which is then interpreted as human intent. The humanintent is used to determine robot intent. In some verticals, the botleads the conversation, while in other cases it mostly reacts to thehuman. For example: in data acquisition type of verticals, the bot aimsto extract some information from the business. Usually, it will try toask a sequence of questions until it gets all desired information. Fortransaction type verticals, where the bot aims to, for example, make areservation, it will predominantly answer questions originated by thehuman (“what is your name?” . . . “and phone number?” . . . ). In suchcases, the system will take the lead only if the human suddenly becomessilent, etc. Programmers can design the flow between human intents androbot intents so that the translation makes logical sense. In someimplementations, there is a protocol for the flow that non-engineerswould be able to control in order to change or update the translationfrom a human intent to a robot intent. The flow may also be learnedautomatically using machine learning.

In another implementation, the input human intent resolution can be ahidden layer and machine learning can be used to learn the output robotintents directly from the input text. The human speech input can bechanged to text and then robot intents can be determined directly fromthis text. In still another implementation, the system can output intentdirectly from human speech. Both of these designs use machine learningto learn the robot intents corresponding to the context and respectiveinputs.

The text-to-intent module 130 is configured using a schema of thepossible incoming intents, example sentences for each such intent, and alanguage-bias configuration. Essentially, the text-to-intent module 130is responsible for “snapping” an incoming sentence into a pre-defined(or an “unknown”) list of intents, while accounting for unfamiliarphrasings and for errors in the speech recognition process. For example,in some implementations, the text-to-intent module 130 can identify thatthe sentence (as received from the speech recognition module) “who beopen eleven o'clock in the morning till nine o'clock tomorrow ninethirty I'm sorry” is similar to the known example “we open at+(TIME,from_time) and close at +(TIME,to_time) I'm sorry”, which is anexample of the intent “WeAreOpen {from_time=11 am, to_time=9:30}”.Fields like the “from_time” and “to_time” are the intent parameters.

The text-to-intent module 130 may be composed of two main parts: (1)annotators and (2) annotated-text to intent classifier. In someimplementations, the system has a post-classification phase which doesargument classification. For example, for the phrase “Monday to Tuesday,sorry Wednesday, we are closed,” the annotation part would rewrite thetext into: “<DATE: Monday> to <DATE: Tuesday>, sorry <DATE: Wednesday>we are closed.” This example shows that the phrase is rewritten withannotators that specify the annotations in response text. Theannotated-text intent classification would turn the annotated phraseinto: WeAreClosed {day1: monday, day2: tuesday, day3: wednesday}. Thepost-classification phase would rewrite the phrase into: WeAreClosed{from_day: monday, to_day: wednesday, wrong_to_day; tuesday}.

As soon as the system 100 receives speech options, it annotates each oneof them for dates, times, common names, etc., using the text-to-intentmodule 130. This is done for two purposes: (1) extracting the intentparameters for the logic module (e.g., “time: 10 am”); (2) generalizingthe text to simplify finding a match to sentences previouslyencountered. The text-to-intent module 130 receives output from thespeech-to-text module 126 and annotates the list of speech options. Thetext-to-intent module 130 then uses the annotations to map the mostlikely option to an intent that is used by the flow manager 132 toselect a next action within a particular work flow.

In order to reduce computation time during the call, the system 100 canbuild, in advance, a library of known texts that should be annotated(relative to the current time and date). For example, on Tuesday Sep. 1,2015, “tomorrow”, “this Wednesday”, “September 2nd”, etc., may be storedas candidates for the “DATE: (2015, 9, 2)” annotation. In real-time, thesystem 100 iterates sequentially on the words in the input sentence(after some canonization) and search for the longest match of anannotation candidate. The system 100 then replaces the text with theannotation and return an edited string where all candidates, left toright, are replaced with annotations. For example, “we open at 7 in themorning” will be replaced with “we open at @(TIME, 7 am)”.

The annotator or text-to-intent module 130 can also be responsible forcontractions. For example, the system 100 can encounter a sentence like“let me see . . . yes, 4, 4 pm”. The text-to-intent module 130 mayreplace “4, 4 pm” with a single “@(TIME, 4 pm)” annotation. Furthermore,the text-to-intent module 130 might contract small time corrections suchas, “we close at 10, ah, 10:30 pm” to “we close at @(TIME, 10:30 pm)”.

In other implementations, the system may use other methods forannotating the text such as: a machine learning algorithm that can learnhow to annotate the text based on curated data; prefix trees that can beused to annotate the text; or rule-based patterns that may be derivedspecifically for annotations.

The text-to-intent module 130 parses and annotates new sentences on mostcalls, and the speech recognition often distorts many of the spokenwords. The system 100 has thousands of intents stored per use case, andclassifies each sentence as having an intent from the stored intentsthat is determined to be most relevant to the sentence based on theparameters of the sentence. For example, based on detecting words in aparticular sentence that suggest a question asking for the caller'sname, the system 100 can classify the particular sentence as having theintent of asking for a name. In some implementations, the system 100does not recognize an intent for a sentence, and can classify thesentence as having an unknown intent.

The text-to-intent module 130 uses machine learning algorithms to handleclassification. For example, the system may use a combination of aconditional random field module with logistic regression modules. In oneimplementation, the classification is done on the sentence level, i.e.,a string of text is converted to a set or list of intents. In anotherimplementation, every token in the original string is classified to anintent and intent boundaries are also classified. For example, thesentence, “On Monday, we open at seven, let me thing . . . on Tuesday,we open at eight,” would be classified in the first implementation ascontaining the intents: GiveDailyHours+AskToWait. In the secondimplementation, the substring “on Monday we open at seven,” would beclassified as the boundaries of a GiveDailyHours intent, the substring“let me think . . . ” would be classified as another intent of typeAskToWait, and the substring “on Tuesday, we open at eight,” as anotherintent of type GiveDailyHours.

In some implementations, the text-to-intent module 130 may not usemachine learning algorithms, but instead uses a set of examples for eachintent, and then uses 1-nearest neighbor (a pattern recognitionalgorithm) between each speech option and all examples, where thedistance metric of the algorithm is a variation of normalized editdistance (a way of qualifying how dissimilar two strings, e.g., words,are to one another) of the words of the sentence. The distance betweentwo individual words is more complicated, and aims to be anapproximation of a phonetic distance. In some examples, semanticdistance may be determined by the annotated text-to-intent module 130.

In practice, the text-to-intent module 130 also can also use crossspeech options signals (e.g., a number that exists only in one of thespeech options is likely a bad interpretation). In some examples, thetext-to-intent module 130 biases the result of the annotated-text tointent module based on the system context as a prior. Finally, thetext-to-intent module 130 has some tailored extractions fornebulously-defined intents like “ComplexOpeningHours” where the systemis able to identify that a complex phrasing of the opening hours hadbeen given, but the system could not correctly extract the parameters(e.g., “ . . . dinner is served until 9, you can order desserts for onemore hour, and the bar is opened until 2, but we don't accept customersafter 1 . . . ” etc.).

In some examples, the examples used for classification are automaticallydeduced based on curated past calls, and can also be edited manually.The generalization process may replace the text with annotations andomits suspicious curations.

In some examples, the human does not speak a single intent, but rather asequence of intents. For example: “you want a haircut? what time?” Theexample system supports any number of intents in a given sentence. Insome examples, the annotated-text to intent module determinesspecifically positive and negative intents as prefixes for other intents(e.g., “no sir, we will be closed at this date”⇒Negative+WeAreClosed).In some examples, the annotated-text to intent module supports anychaining of intents.

The system includes multiple modules that perform different functions oforganizational logic, including the flow manager 132, which includes acommon sense module 133, and the bailout module 136.

The flow manager 132 can include custom code per vertical that trackseach call and determines how to respond to each intent received from thehuman (or a long silence). However, in other implementations, the flowmanager is generic across verticals. The response is a list of syntheticintents to say to the human 104 (the bot can also choose to remainsilent), and sometimes a command to end the call. The flow manager 132is also responsible for generating the outcome of the call, includingany information gathered during it. In some examples, the system 100learns how to react to each input is based on live calls, initially madeby human and later on by a ‘child’ bot. The system 100 keeps the logicas flexible as possible to account for any misunderstanding it hadduring the call.

The system 100 has multiple flows, each of which is tailored for aparticular type of task, such as determining opening hours for abusiness or making a reservation for a salon appointment. The system 100can maintain common libraries shared between the different flows, andextract sub-flows from the history of placed calls, allowing the systemto jump-start a new vertical for each task. In some examples, the system100 may automatically learn flows for different tasks based on themanually placed calls.

Humans may skip some important details when speaking without confusingtheir conversation partner. For example, a human might say “we open 10to 4”. The bot needs to understand whether the business opens at 10 a.m.or 10 p.m., and similarly, whether it closes at 4 pm or 4 am. If, forexample, the business is a nightclub, the bot might be expected toassume 10 p.m.-4 a.m.; if the business is a restaurant, the bot might beexpected to assume 10 a.m.-4 p.m., etc.

The flow manager 132 includes a common sense module 133 thatdisambiguates intents in received speech input. In some examples, theflow manager 132 includes multiple types of common sense modules, e.g.,a module that learns from statistics over some data set (e.g., thebaseline local database), and a module that is manually programmed. Thefirst type of module takes a data set of options (e.g., opening hours)and calculates the p-value for each option and sub-option (e.g., “2 am-4am” or just “2 am”?). The second type of module uses a set of predefinedrules that prevent the system from making “common sense” mistakes thatmight reside in the dataset. Whenever there are multiple ways tointerpret some variable, the flow manager 132 can combine the two scoresto determine the most probable option. In some examples, the flowmanager 132 concludes no option is probable enough, and the system 100falls back on trying to explicitly ask the human to clarify what theymeant.

The common sense module 133 can use data from similar callees to selecta most probable option. For example, if most bars in Philadelphiaoperate from 8 p.m. to 2 a.m., the common sense module 133 can determinethat the most probable option for an ambiguous phrase: “we're open from10 to 2” is that the speaker meant 10 p.m. to 2 a.m. In some examples,the common sense module 133 can indicate to the flow manager 132 thatfurther clarification is required. For example, if most post offices inJackson, Mich. have business hours of 10 a.m. to 5 p.m., the commonsense module 133 may instruct the flow manger 132 to ask forclarification if the system 100 believes that the callee responded thattheir hours are “2 p.m. to 6 p.m.,” which is a threshold amountdifferent from the typical post office.

Sometimes, there is an accumulated strain during the call, usually dueto high background noise, exceptional scenarios, a heavy accent, or justa bug in the code. Strain may also be caused by unexpected intent. Forexample, when calling a restaurant, the system might encounter theunexpected sentence: “so, do you want to make a presentation?” or “wedon't have a TV to show the Super Bowl, just so you know.” The systemshould handle intents that it has previously not encountered. In orderto identify problematic conditions for either party, the bot tries toquantify the amount of stress exhibited during the call. The bailoutmodule 136 can mimic an operator supervising the call and choose when toimplement manual intervention.

The operator controller 134 is communicably connected to the flowmanager 132, and the operator controller 134 allows a human operator toprovide instructions directly to the flow manager 132. In some examples,once a call is transferred to a human operator to handle, the operatorcontroller 134 puts the flow manager 132 into a holding pattern orpauses or shuts down the flow manager 132.

Once the flow manager 132 selects a next node within a particularworkflow based on the determined intent from the text-to-intent module130, the flow manager 132 provides instructions to the intent-to-textmodule 124. The instructions provided by the flow manager 132 include anext intent to be communicated to the callee through the communicationsplatform 102. The intent-to-text module 124 also produces markup cuesfor the speech synthesis, e.g., defining a different emphasis or prosodyon some of the words. The intent-to-text module 124 can use manuallydefined rules or reinforcement learning to produce new text from intent.

The output of the intent-to-text module 124 is text to be converted intoaudio data for output at the communications platform 102. The text isconverted into audio by the text-to-speech module 118, which usespreviously stored text-to-speech outputs and readings 122. Thetext-to-speech module 118 can select previously stored outputs from thestored outputs/readings 122. In some implementations the system will usea text-to-speech synthesizer during the call. For example, if a commonresponse selected by the flow manager 132 for the bot to provide is“Great, thank you for your help!” the text-to-speech module 118 canselect a previously generated text-to-speech output without having togenerate the output at run-time. In some examples, the text-to-speechmodule 118 uses a third party API accessed through a network connection,similar to the speech API 128.

As discussed above, in certain examples, a user may initiate a task forthe system 100 by interacting with search (e.g., web search) resultsprovided to the user. For example, the user may look up “book a tablefor two tonight at a Michelin starred restaurant.” The task managermodule 140 may receive a task and store the task information in the taskinformation storage 150. The task manager module 140 may then determinewhen to schedule the task and set a triggering event. For example, ifthe user requests to book a table before the Michelin starred restaurantis open, the task manager module 140 may determine when the restaurantis open and set a triggering event for that time. If the task managermodule 140 knows that there will be a delay in processing because of thetriggering event, the task manager module 140 may alert the user to thedelay by providing a visual, audio, or some other indication. In someimplementations, the task manager module 140 may provide informationabout the time it will take to complete the task, when the task isscheduled to start, or provide more information as to why the task isdelayed.

The trigger module 110 may detect that a particular trigger event (inthis example, the opening time of the restaurant) has occurred, andinstructs the dialer 106 to place a call. In some examples, the system100 can present the user with options to select a restaurant to call. Inother examples, the system 100 can automatically place a call to aparticular restaurant selected based on a set of characteristics. Theuser can define default preferences for placing calls for particulartasks. For example, the user can designate that the system 100 shouldselect the closest restaurant to the user's current location to call, orthat the system 100 should select the most highly rated restaurant tocall.

In certain examples, the system 100 includes or forms a part of, or isconfigured to communicate with, a communications application, such as amessaging or chat app that includes a user interface through which auser provides to the system requests for assistance with a task. Forexample, the user may be able to text a number with a request, such as“does Wire City have 20 AWG wire in red?” using a messaging application.The system may receive the text message, parse the request to determinethat a trigger event has occurred, and initiate a call to carry out anappropriate action. For example, the system may place a call to thenearest Wire City to inquire as to whether they have 20 gauge red wirein stock at the moment.

Similarly, in certain examples, the system 100 includes or forms a partof, or is configured to communicate with a virtual assistant system thatitself is a collection of software agents for assisting a user withvarious services or tasks. For example, the user may input to a virtualassistant (by voice or text entry) “is my dry cleaning ready?” Thevirtual assistant may process this input and determine thatcommunication with a business is required to satisfy the query, andaccordingly communicate with the system to identify intent, place thecall, and execute the appropriate workflow.

In certain examples, the system 100 autonomously executes a task throughmultiple dialogs with multiple humans, respectively, and may collect,analyze, take action on, and/or present individual or cumulative resultsof the dialogs. For example, if a task is assigned to the system 100 togather data on when the busiest time is for a number of restaurants in aspecified area, the system 100 may automatically place calls to eachrestaurant asking how many customers are seated over a period of time toanalyze the data and provide a result.

FIG. 2A shows an example process 200 for completing a task assigned by auser. Briefly, the process 200 may include mapping a conversation to aninitial node of a set of predefined workflows, each linked by intents(202), selecting an outgoing message based on a current node of theworkflow (204), receiving a response from a human user (206), mappingthe response to an intent within the predefined workflow (208),selecting a next node as the current node within the workflow based onthe intent (210), and repeating 204-210 until an end node of the set oflinked nodes in the predefined workflow is reached. The process 200 canbe executed by a call inhibiting system, such as the system 100.

The process 200 may include mapping a conversation to an initial node ofa set of predefined workflows, each linked by intents (202). Forexample, the flow manager 132 as described above with respect to FIG. 1can map a conversation to an initial node of a set of predefinedworkflows that are each linked by intents. In some examples, aconversation between the system 100 and a human callee may be initiatedby a user. In some examples, the conversation includes an intent thatmaps to a node of a set of predefined workflows. For example, the system100 may store a set of predefined workflows with actions to beperformed. In some examples, the system may select a predefined workflowbased on the identified intent. Each of the workflows may be linked byintents. In some examples, the system 100 may place a telephone call toa business specified by the user in the conversation. In some examples,the business may be a restaurant, a salon, a doctor's office, etc. Insome examples, the system may consider the call successfully placed onlyif a human answers, and if no one answers, or if the system is directedto a phone tree and does not successfully navigate the phone tree, thesystem may determine that the call was not successfully placed.

The process 200 may include selecting an outgoing message based on acurrent node of the workflow (204). For example, the flow manager 132may select a message saying “Hello, I would like to schedule anappointment for a haircut,” if the current node of the workflowindicates that the user would like to schedule such an appointment.

The process 200 may include receiving a response from a human user(206). For example, the system 100 may receive a response from a humancallee on the other end of a telephone call, such as “Sure, and whattime and date would you like to schedule this appointment for?”. In someexamples, the system 100 may record the response (e.g., using thesession recorder 114). In some examples, the system 100 may reproducethe response for a human operator. In some examples, a human operatormay be monitoring the call (e.g., using the operator controller 134).

The process 200 may include mapping the response to an intent within thepredefined workflow (208). The flow manager 132 can map the response toan intent within the predefined workflow. In some examples, the systemcompares the identified intent with the intents through which the set ofpredefined workflows are each linked.

The process 200 may include selecting a next node as the current nodewithin the workflow based on the intent (210). For example, the flowmanager 132 may determine, using the intent, a next node of theworkflow. The flow manager 132 may then designate the next node as thecurrent node. The process 200 may include repeating 204-210 until an endnode is reached. Thus, the designated current node is used in eachrepeated cycle of 204-210 to determine the next outgoing message untilan end node is reached.

FIG. 2B shows an example process 250 for completing a task assigned by auser. Briefly, the process 250 may include receiving a task associatedwith an intent from a user (252), identifying the intent (254),selecting a predefined workflow based on the intent from among a set ofpredefined workflows linked by intents (256), following the predefinedworkflow (258), and completing the task (260). The process 250 can beexecuted by a call initiating system, such as the system 100.

The process 250 may include receiving a task associated with an intentfrom a user (252). For example, a user may submit a search query “bookan appointment for a haircut” to the system 100 through a userinterface. In some examples, the search query may be received by thetrigger module 110, which detects that the query is a trigger event thatindicates that a call should be placed to a particular callee. The taskmay be to book an appointment, and the intent may be to get a haircut.In some examples, the task or the intent may not be explicitly entered.In some examples, a user may submit a task and an intent withoutentering a search query. The task associated with an intent may bereceived by a system for assisting with tasks.

The process 250 may include identifying the intent (254). For example,the system 100 may process the received task associated with an intentand identify the intent. In some examples, the intent may be explicitlyinput and separate from the task. In some examples, the intent may be aproperty of the task. In some examples, the input is provided as speechinput, and the speech endpoint detector r 120 provides a parsed outputto the speech-to-text module 126 which sends the text to thetext-to-intent module 130, which identifies an intent.

The process 250 may include selecting a predefined workflow based on theintent from among a set of predefined workflows linked by intents (256).For example, the system 100 may store a set of predefined workflows withactions to be performed. In some examples, the system may select apredefined workflow based on the identified intent from (254). Forexample, the flow manager 132 can select a predefined workflow based onthe identified intent from (254) by the text-to-intent module 130. Insome examples, the system compares the identified intent with theintents through which the set of predefined workflows are each linked.

The process 250 may include following the predefined workflow (258). Forexample, the system 100 may include modules that follow instructionsincluded in the predefined workflow. In some examples, a bot of thesystem 100 may follow the instructions included in the predefinedworkflow. For example, instructions may include instructing the triggermodule 110 to provide control data to the dialer 106 to place a call toand converse with a human representative of a business.

The process 250 may include completing the task (260). For example, thesystem 100 may complete the entire task assigned, such as paying a bill,changing a reservation for dinner, etc. In some examples, the system 100may complete a portion of the task, such as placing a call andnavigating a phone tree until it reaches a human. In some examples, thesystem 100 may complete a portion of the task specified by the user. Forexample, the user may specify that the system complete all of the taskand transfer the call to the user for verification.

Many use cases may involve users who want to purchase something from abusiness, but have trouble doing so due to complexity, menu navigation,language challenges, reference knowledge, etc., required for thetransaction. Transaction queries may garner support from humans on thevendor side willing to help the system succeed in order to complete thetransaction. In some examples, the system provides critical assistancein developing countries and low tech and service industries, such asplumbing, roofing, etc. Workflows may be employed to both assist a humanuser to successfully navigate such transactions as well as encourage thevendor-side system to assist the user. The system is scalable toaccommodate varying use cases. For example, a restaurant bookingapplication may partner with thousands of businesses worldwide; thesystem disclosed herein can be configured to issue a restaurant bookingat whatever scale is required.

FIG. 3 shows an example workflow 300 for a process executed by thesystem. In this particular example, a simple Boolean question is askedby the bot of the system 100. It is understood that the system is ableto respond to questions of higher complexity, and that the work flow 300is presented for simplicity of explanation.

The flow 300 shows an example question posed by the bot: “Are you opentomorrow?” The possible responses provided by the human are laid out,and the bot's responses to each of the human's responses are provided.Depending on the human's response, there are several stages of the flow300 to which the system 100 could be directed. Stages shown indouble-borders are end stages in which system 100 exits the flow 300.For example, in response to the binary question posed by the bot, thehuman callee could confirm that the business is open tomorrow, endingthe flow 300. The human callee could confirm that the business is notopen tomorrow, ending the flow 300. The human callee could ask the botto hold, thus sending the bot into a hold flow separate from the flow300 and ending the flow 300.

For ease of access to users and to promote propagation of the system100, the system 100 is integrated with existing applications, programs,and services. For example, the system 100 may be integrated withexisting search engines or applications on a user's mobile device.Integration with other services, or verticals, allow users to easilysubmit requests for tasks to be completed. For example, the system 100may be integrated with a search engine knowledge graph.

In some use cases, real-time judgment of a human might be automated. Forexample, the system 100 may automatically detect that the user isrunning ten minutes late to a barber shop appointment and alert thebarber prior to the user's arrival.

The system 100 can select certain parameters of the bot based on thecontext of the conversation being conducted or data about a particularcallee stored within a knowledge database. For example, the system 100can determine based on a callee's accent, location, and other contextualdata, that the callee is more comfortable with a language different thanthe language the call is currently being conducted in. The system 100can then switch to the language with which the bot believes the calleeis more comfortable and ask the callee if he or she would prefer toconduct the call in the new language. By mirroring certain speechcharacteristics of the human callee, the system 100 increases thepossibility of a successful call. The system 100 reduces potentialsources of friction within a conversation due to speech characteristicsto reduce the strain accumulated during a call. These characteristicscan include average length of word used, complexity of sentencestructure, length of pauses between phrases, the language the callee ismost comfortable speaking, and various other speech characteristics.

FIG. 4 is a block diagram 400 of the call triggering module of thesystem 100. The trigger module 110 is communicably connected to thedialer 106, and provides instructions to the dialer 106 to initiatecalls to particular callees or sets of callees based on detecting atrigger event. In some examples, the trigger module 110 can communicatewith the flow manager 132 to provide trigger event data that the flowmanager 132 uses to select a node of a particular workflow or provideinstructions to the dialer 106.

The trigger module 110 receives input from various modules, including aninconsistency detector 402, a third party API 404, a trend detector 406,and an event identifier 408. The trigger module 110 can also receiveinput from the flow manager 132. In some examples, each of the modules402-408 are integral to the system 100. In other examples, one or moreof the modules 402-408 are remote from the system 100, and are connectedto the trigger module 110 over a network, such as a local area network(LAN), a wide area network (WAN), the Internet, or a combinationthereof. The network can connect one or more of the modules 402-408 tothe trigger module, and can facilitate communication between componentsof the system 100 (e.g., between the speech API 128 and thespeech-to-text module 126).

The inconsistency detector 402 receives data from multiple differentsources and detects inconsistencies between data values from a firstdata source and corresponding data values from a second source. Forexample, the inconsistency detector 402 can receive data indicating theoperating hours of a clinic and detect that the operating hours for aclinic listed on the clinic's website are different from the operatinghours posted outside of the clinic. The inconsistency detector 402 canprovide data to the trigger module 110 indicating the source ofcontention, the type of the data value in which the inconsistency wasdetected, the data values that are in conflict, and various othercharacteristics. In some examples, the inconsistency detector 402provides the trigger module 110 with instructions to initiate a call toa particular callee. In other examples, the trigger module 110determines, based on the data received from the inconsistency detector402, a particular callee to contact and fields of data to be collectedfrom the particular callee.

The trigger module 110 can detect a trigger event based on data providedby the inconsistency detector 402. Trigger events can include receivinguser input indicating a discrepancy. For example, the trigger module 110can receive user input through a user interface 410. The user interface410 can be an interface for a separate application or program. Forexample, the user interface 410 can be a graphical user interface for asearch engine application or a navigational application.

In some implementations, the user interface 410 can prompt a user toprovide information. For example, a user is detected to be at a storeafter the store's advertised closing hours, the system can ask the userif the store is still open or ask the user to input the hours. The usercan input the requested data through the user interface 410, and theinconsistency detector 402 can determine whether there exists adiscrepancy between the data input through the user interface 410 andcorresponding data from a second source, such as a knowledge base 412.The knowledge base 412 can be a storage medium such as a remote storagedevice, a local server, or any of various other types of storage media.The inconsistency detector 402 can determine whether the user is at thestore a predetermined amount of time outside of regular hours (e.g.,more than 20 minutes, because stores may stay open for a few extraminutes for a particularly slow customer).

In another exemplary situation, the inconsistency detector 402 candetermine that information on an organization's website is outdated. Forexample, the inconsistency detector 402 can detect, based on data fromthe knowledge database 412, that a bass fishing club's website showsthat there are monthly meetings on the first Wednesday of every month,but that the club's more active social media profiles all indicate thatmonthly meetings occur on the second Tuesday of every month. Theinconsistency detector 402 can then output to the trigger module 110data indicating this detected inconsistency.

Trigger events can include determining that a particular set of data hasnot been updated for a predetermined amount of time. For example, a userof the system 100 can specify an amount of time after which data shouldbe refreshed regardless of any other trigger events occurring. Theinconsistency detector can compare a last-updated timestamp for aparticular data value and determine, based on the timestamp, whether thepredetermine amount of time has passed. Characteristics for particulardata fields, including timestamps and the data values themselves, can bestored in the knowledge database 412. A timer 414 can provide data tothe knowledge database 412 to update the amount of time that has passed.The inconsistency detector 402 can determine that a predetermined periodof time has passed based on the timing data provided by the timer 414.

For example, the inconsistency detector 402 can determine, based on datafrom the knowledge database 412, that operating hours for small coffeeshops in Ithaca, N.Y. have not been updated for three months. Theinconsistency detector 402 can then provide output data to the triggermodule 110 indicating the detected event.

Trigger events can include receiving requests to initiate a call fromone or more users. For example, the trigger module 110 can detectreceiving a request from a user through the third party API 404. Thethird party API 404 is communicably connected to a user interface, suchas the user interface 416, through which a user can provide inputindicating a request to initiate a call. For example, the user interface416 can be a graphical user interface for an application through which auser can request call campaigns to be scheduled and executed. A user canprovide data indicating a particular callee or set of callees, and theparticular data requested for extraction. For example, a user canrequest that a call campaign to each hardware store in Virginia thatsells livestock supplies be conducted and that the hardware stores areasked whether they provide chick starter feed (e.g., such that an indexof locations carrying the supplies is available for later search).

During the call, the callee can schedule a different time for the system100 to call the callee back. For example, if asked about whether anychanges have been made to a menu of a restaurant, a human callee can askthe system 100 to call them back in an hour or the next day, afterthey've had a chance to look over the new menu, for further action. Thesystem 100 can then schedule a call for the requested time. In someexamples, the trigger module 110 can schedule a trigger event for thefuture. In other examples, the flow manager 132 can schedule an intentor a call event to be executed by the dialer 106 to initiate the call.

Trigger events can include trends or patterns detected in stored datawithin a knowledge database or data provided in real time. For example,trends detected in search data received from a search engine 418 can betrigger events. Search engine 418 receives search requests from users,and can provide data indicating the search requests to the trenddetector 406. The trend detector 406 analyzes the data received anddetects trends in the received data. For example, if searches for Cubanrestaurants in Asheville, N.C. have increased 500% in the past month,the trend detector 406 can detect the increase in searches and providedata indicating the trend to the trigger module 110.

The trend detector 406 can output data to the trigger module 110 thatindicates a particular callee or a set of callees based on theidentified trend. In some implementations, the trend detector 406provides data indicating the detected trend and the trigger module 110determines a particular callee or set of callees based on the identifiedtrend. For example, the trend detector 406 can determine that there hasbeen a 40% increase in searches for “tornado Lincoln Nebr.” and providethe keywords of the search to the trigger module 110. The trigger module110 can then determine that calls should be placed to all stores thatprovide emergency supplies to ascertain how much stock each store has ofessential items, and their hours of operation (e.g., for indexing andlater search by users of the search engine).

Trigger events can include particular events of interest that have beenidentified as having effects on normal operations of businesses,organizations, individual persons, etc. The event identifier 408receives data from various third party sources, including a third partydatabase 420 and an event database 422. The event identifier 408 canreceive data from other sources, such as local memory devices or realtime data streams. The event identifier 408 identifies particular eventsfrom the databases 420 and 422 and outputs data indicating theidentified events to the trigger module 110. In some examples, thetrigger module 110 selects a particular callee or set of callees anddata to be requested during a call based on the data provided by theevent identifier 408.

Particular events that can affect operation of businesses,organizations, and individual persons include extreme weatherconditions, federal holidays, religious holidays, sporting events, andvarious other happenings.

The third party database 420 provides the event identifier 408 with datafrom various third party data sources, including the weather service,governmental alerts, etc. For example, the third party database 420 canprovide the trend identifier 408 with storm warnings. The eventidentifier 408 can then determine that a winter storm is approaching thenorth-eastern corner of Minneapolis, Minn., and can determine that callsshould be placed to hardware stores within the north-eastern corner ofMinneapolis to determine the current stock of generators available.

The event database 422 provides the event identifier 408 with data fromvarious data sources and specifically includes data indicating knownevents. For example, the event database 422 can provide data indicatingfederal and state holidays, religious holidays, parades, sportingevents, exhibition openings, visiting dignitaries, and various otherevents.

For example, if a particular city is hosting the Super Bowl, the eventdatabase 422 can provide the data to the event identifier 408, whichprovides data indicating the event to the trigger module 110. Thetrigger module 110 can determine, based on known information about thecurrent Super Bowl and stored information about the past Super Bowl,that calls should be placed to all hotels in the area to confirmavailability and pricing. The trigger module 110 can also determine thatcalls should be placed to sporting goods stores to determine theavailability of jerseys for each of the teams participating in the SuperBowl. In such situations, other information that affects operation ofbusinesses, organizations, or individual persons that the trigger module110 can request includes closings of office buildings and schools,changes to public transportation schedules, special restaurantofferings, or various other information.

One or more of the various modules of the system 100 can determine,based on the received event information from the event identifier 408,inferred trigger events or information to request. For example, if it isDia de Muertos, South American restaurants, and Mexican restaurants inparticular, may have special menus or hours because of the celebrations.In such examples, the trigger module 110 can provide instructions to thedialer 106 to conduct calls to South American restaurants to updateoperating hours for the day and the menu.

In some implementations, a trigger event can be detected from the callplaced by the system 100 itself. The flow manager 132 can determine,based on portions of the conversation conducted by the system 100, thatan intent has been expressed during the conversation suggesting that acall should be placed. For example, if a human callee says “Yes, we arestill open until 8 p.m. every Thursday, but next week we will beswitching over to our summer schedule, and we will be open until 9:30p.m.,” then the flow manger 132 can identify an intent that providesfurther information regarding a data field.

In some implementations, a trigger event can include receivingunsatisfactory results from a previously placed call. For example, ifthe bot places a call to a business to determine if the business willhave special holiday hours over the Independence Day holiday, and doesnot have at least a threshold amount of confidence in the veracity ofthe answer provided by the human representative of the business, thesystem 100 can schedule a call for another specific day or time, such asJuly 1, to determine whether special holiday hours will be in place. Insuch examples, the trigger module 110 can schedule a trigger event orprovide information to the flow manager 132 to schedule an action. Insome examples, the flow manager 132 schedules initiating a callback byscheduling transmission of instructions to the dialer 106.

The system 100 has a common sense module 133 that allows the flowmanager 132 to schedule and select nodes of a particular workflowintelligently. For example, in the above situation, when there is adeadline for the usefulness of the information being requested duringthe call, the common sense module 133 can also determine when toschedule the call and what information to request. In some examples, thecommon sense module 133 is a component of the flow manager 132, asdescribed in FIG. 1. In other examples, the common sense module 133 is acomponent of the trigger module 110 and facilitates the trigger module110 making intelligent determinations as to whether a call should beinitiated.

FIG. 5 shows an example process 500 for initiating a phone call.Briefly, the process 500 may include receiving, by a call triggeringmodule of a call initiating system for placing calls and conductingconversations between a bot of the call initiating system and a humancallee during the calls, data indicating a first event (502),determining, by the call triggering module and using the data indicatingthe first event, that the first event is a trigger event that triggers aworkflow for the call initiating system that begins with initiating aphone call (504), selecting, based on the determined trigger event, aparticular workflow (506), and in response to the selecting, initiatinga phone call to a callee specified by the particular workflow (508).

The process 500 may include receiving, by a call triggering module of acall initiating system for placing calls and conducting conversationsbetween a bot of the call initiating system and a human callee duringthe calls, data indicating a first event (502). For example, the triggermodule 110 can receive data from the inconsistency detector 402indicating a discrepancy between the business hours of Sally's Saloon ofSweets posted on the store's website and the business hours stored in asearch index relating to that business.

The process 500 may include determining, by the call triggering moduleand using the data indicating the first event, that the first event is atrigger event that triggers a workflow for the call initiating systemthat begins with initiating a phone call (504). In some examples, thedetermined trigger event is an inconsistency of a value associated witha first data source and a corresponding value associated with a seconddata source. For example, the trigger module 110 can use the detectedinconsistency from the inconsistency detector 402 to determine that theinconsistency is a trigger event that will trigger a workflow todetermine what the actual business hours are for Sally's Saloon.

In some examples, the data indicating the first event is provided by auser. For example, a user can report that there is a discrepancy betweenthe hours posted on the website for Sally's Saloon and the hours postedon the storefront for Sally's Saloon.

In some examples, the determined trigger event is a user request. Forexample, a user can provide input through a user interface, such as theuser interface 416, to a third party API, such as the third party API404, to request scheduling and execution of calls to a particular calleeor a set of particular callees.

In some examples, the determined trigger event is a particular type ofevent that is one of: a weather event, a sporting event, anentertainment event, or a seasonal event. For example, the eventidentifier 408 can determine that the Head of the Charles regatta isoccurring in Boston, Mass., and can provide the event data to thetrigger module 110. The trigger module 110 can then determine that theregatta is a trigger event.

In some examples, the determined trigger event is a trend detected insearch requests submitted to a search engine. For example, the trenddetector 406 can receive search engine data from the search engine 418and determine that Spanish tapas restaurants are trending. The trenddetector 406 can provide data indicating the trend to the trigger module110 and the trigger module 110 can determine that the trend is a triggerevent.

In some examples, the determined trigger event is the passing of apredetermined period of time. For example, the inconsistency detector402 can determine, based on data in the knowledge database 412 from thetimer 414, that the menu for the Cuban restaurants in Manhattan, N.Y.have not been updated for four months. The inconsistency detector 402can provide the timing data to the trigger module 110, and the triggermodule 110 can determine that the passing of four months withoutupdating the menu data for the Cuban restaurants in Manhattan is atrigger event. The trigger module 110 can then provide data to the flowmanager 132 suggesting that the Cuban restaurants in Manhattan be calledto obtain updated menu information.

The process 500 may include selecting, based on the determined triggerevent, a particular workflow (506). The trigger module 110 can providethe trigger event data to the dialer 106 or to the flow manager 132 touse in selecting a particular workflow or node of a workflow. Forexample, the trigger module 110 can provide the trigger event dataindicating the inconsistency in posted business hours for Sally's Saloonfor Sweets to the flow manager 132, which uses the data to select aparticular workflow to call Sally's Saloon to resolve the discrepancies.

The process 500 may include initiating, in response to the selecting, aphone call to a callee specified by the particular workflow (508). Theflow manager 132 can provide instructions to the dialer 106 indicating aparticular callee to be contacted. For example, the flow manager 132 canprovide instructions to the dialer 106 to call Sally's Saloon.

While the initiation of workflows, and more specifically the placementof calls, by the systems and methods described herein may be relativelyautomated by triggering events, safeguards may be included in system 100to prevent unwanted calls or calls in violation of local regulations.For example, if a callee indicates that they no longer wish to receivecalls from the system, the system may note this and build in checks forcalls to the callee's number to prevent further calls.

Furthermore, to the extent that the systems and methods described hereincollect data, the data may be treated in one or more ways before it isstored or used, so that personally identifiable information is removedor permanently obscured. For example, identity of the callee may bepermanently removed or treated so that no personally identifiableinformation can be determined, or a callee's geographical location maybe generalized where location information is obtained, so that aparticular location of a user cannot be determined where appropriate.Where personal, private, or sensitive information is received during acall, whether requested as part of the workflow, volunteered by thecallee, or inadvertently received, workflows may include steps forpermanent removal or obfuscation of that information from the system.

In certain examples, the system 100 may provide the user with thecurrent status of efforts to execute the request for assistance a task,either automatically or upon user request. For example, the system 100may provide the user with a status of a task being carried out through anotification on the device the user is using, such as a computer, amobile device, etc. In some examples, the system 100 may notify the userof the status of an ongoing task through other means, such as amessaging application, through telephonic communication, etc.

FIG. 6 is a block diagram 600 of the task manager module of the system100. The task manager module 140 is connected to the communicationplatform 102, the trigger module 110, the task information storage 150,and the sessions storage 116. When a user communicates a task throughthe communication platform, the task information is stored in the taskinformation storage 150 and the task manager module 140 determines whenthe task should be scheduled. The task manager may associate the taskwith a trigger event. The task may have a status that is initially setto “new” or some other indicator that there has been no processing onthe request. Once the trigger event occurs, the trigger module 110 willstart the dialing process. In some implementations, the task managermodule 140 monitors the sessions storage to update the status of eachtask when the status of the tasks change from initiated, to in progress,to complete.

From the sessions information, the task manager module can determine thestatus and outcome of each call. For example, a bot may try to call arestaurant several times before getting through to someone to make areservation. The sessions storage holds information about each call thatthe bot makes. In some implementations, the task manager module mayperiodically poll the session storage to determine the status of a calltask, i.e., whether a call has been initialized, is in progress, or hasbeen complete. In other implementations, the sessions storage may sendthe outcome of a call to the task manager module in order to update thestatus of the task in the task information storage.

In some implementations, a call is reviewed by an operator through anoperator dashboard that displays call tasks and information about theprogress of the tasks.

FIG. 7A illustrates an operator dashboard that shows information aboutprogress of existing call tasks. For example, FIG. 7A shows tasks forhaircut appointments. The operator dashboard may provide informationabout the appointments including: the booking time, requestor's name,service requested, business name, date, and time of the appointment. Anoperator may be able to review the requests and the associated sessionsinformation from calls associated with the requests to determine if therequested appointments have been properly booked.

FIG. 7B illustrates an operator review screen for reviewing one of theuser requested tasks. The screen may show the operator the currentstatus of the task. As illustrated in FIG. 7B, the task is completesince the reservation has been made. However, in some cases, the taskmay not be complete and the reservation may not have been made. Theoperator may have the option of playing the recording associated withthe task or looking at other stored information from the call, e.g.,transcriptions, extracted intents, etc., calling the business associatedwith the task, or scheduling an automated call for the future.Additionally, the operator may have the option of providing the currentstatus of the task to the requesting user.

A user can also request the status of a task through the communicationplatform 102. Additionally or alternatively, the task manager module 140can determine when to send the user a status update based on othertriggering events such as task status changes or time.

FIG. 8 is a flow diagram that shows an example of a process 800 forproviding the status of a task. The process 80 may include determining,by a task manager module, that a triggering event has occurred toprovide a current status of a user call request (802). As discussedabove, triggering events may include: a user request for status, apassage of a certain amount of time, or a change in the status of aparticular task. The process 800 then includes determining, by the taskmanager module, the current status of the user call request (804). Thetask manager module can determine the current status by checking thestatus in the task information storage. The status of a task isinitialized when the task is added to the task information storage 150.As calls associated with the task are made and completed, the status ofthe task is updated. The task manager then generates a representation ofthe current status of the user call request (806). The representationcan be a visual or an audio representation that conveys the currentstatus of the task. The process 800 provides the user with the generatedrepresentation of the current status of the user call request (808).

FIG. 9A shows a visual status of the haircut appointment request of FIG.1B while the appointment scheduling is in progress. A user may be ableto access a user interface to check the status of a task request or thestatus may be sent to a user device such as a smart phone, smart watch,laptop, personal home assistant device, or other electronic device. Thestatus may be sent by email, SMS, or other mechanism.

FIG. 9B shows a visual status of the haircut appointment request of FIG.1B once the appointment has been successfully scheduled. This status maybe requested by the user or may be sent to the user without the userprompting once the appointment has been successfully booked.

FIG. 10A illustrates an oral status request and update of the restaurantreservation request of FIG. 1C. As illustrated in FIG. 10A, in responseto the user asking whether the restaurant reservation has been made, thesystem may explain the steps it has taken to complete the task, such ascalling the restaurant twice. The system may also tell the user when thenext time the system is scheduled to attempt the call and may notify theuser of the status after the call attempt.

FIG. 10B illustrates an oral status update provided by the systemwithout prompting by the user for the restaurant reservation request ofFIG. 1C. Once the system knows that the user's task has been complete,the system can provide the user with a status update. In someimplementations, the system provides the user with the status updateimmediately. In other implementations, the system determines aconvenient time or method for notifying the user. For example, the usermay request a dinner reservation in London, United Kingdom. However, theuser may presently be located in Mountain View, Calif., USA. The systemmay attempt to call the restaurant at a time when the user is sleeping.If the system confirms the reservation at 12 pm in London, the systemmay determine that sending a status update text message at 4 am PDT maywake the user. The system may then choose an alternate status updatemethod, i.e., email, or hold the status update for a more convenienttime for the user. The system can determine the appropriate, convenienttimes and method to provide status updates to the user using informationfrom the user's schedule, time zone, habits, or other personalinformation of the user.

In some implementations, the system may use user information todetermine the urgency of a task or whether to repeat an effort tocomplete a task. For example, the system may be trying to make areservation for a user at a specific restaurant in Mountain View, Calif.The user's travel to Mountain View may end on May 15th. If the system isstill not successful on May 15th, it does not make sense for the systemto continue to request reservations for May 16th or later since theuser's trip will be over. However, it does make sense to call twice asoften on May 14th as compared with earlier dates in order to get a holdof someone at the restaurant to make a reservation. A task may becomemore urgent as a deadline approaches and less urgent or obsolete as thedeadline passes.

In some implementations, the bailout module 136 of FIG. 1B determinesthe type of intervention that should be introduced for a call while thecall is in progress. The bailout module 136 may choose to manuallybailout of a bot conversation in real-time and explain that another willbe taking over the call. In other implementations, the module may allowa human operator to silently take over the call. Additionally oralternatively, the bailout module 136 may choose to politely end a phonecall between a bot and a human with no manual intervention.

FIG. 11 shows an example process 1100 for transitioning a phone callfrom a bot to a human. The process 1100 may include, analyzing, by acall initiating system, a real-time conversation between a first humanand the bot during a phone call between the first human on the first endof the phone call and the bot on a second end of the phone call (1102).The call initiating system may then determine based on analysis of thereal-time conversation, whether the phone call should be transitionedfrom the bot to a second human on the second end of the phone call(1104). In response to determining that the phone call should betransitioned to a second human on a second end of the phone call,transitioning, by the call initiating system, the phone call from thebot to the second human (1106).

In order to determine the type of intervention that is most appropriatefor a particular bot phone call, the bailout module 136 may identifystrain events or look for other indications that the call should eitherbe terminated or handed over to a human operator.

In some implementations, the bailout module 136 identifies strain eventsthat indicate strain on the human or on the bot to appropriately respondto the human's questions. Each time the bailout module 136 identifies astrain event, it increases the stored levels of both local and globalstrain of the call. Whenever the conversation seems to get back ontrack, the bailout module 136 resets the local strain level. Forexample, the human may ask the bot, “How many highchairs will your partyneed?” when the bot has called a restaurant to make reservations for aparty of 6. The bot may respond with, “we all need chairs.” The humanmay have a slightly irritated tone based on the bot's response andrespond, “Yes, I know you all need chairs, but how many high chairs forbabies do you need?” The system may detect intonation patterns, i.e., ahigher pitch at the beginning of a human's statement, at the end of thestatement, or throughout the statement. In some implementations,intonation patterns are pre-associated with stress or irritation. Thesystem can match the pre-associated patterns with the pattern detectedin the real-time conversation. In some implementations, intonationpatterns can detect repeated words, talking intentionally slower, orkeywords or phrases (“are you even listening to me?” “am I talking to arobot?”)

When the system detects a slightly irritated tone of the human itincreases the local strain level of the call. The local strain is arunning score that reflects the likely amount of strain associated withthe current state. If any of the strain indicators appear in a humanstatement within the real-time conversation, the strain score risesuntil the score reaches an intervention threshold. If none of the stressindicators appear, the system may indicate that the call is proceedingaccording to the workflow and the local strain score decreases orremains low (or 0). If the bot appropriately responds to the question byproviding a response expected by the human, such as, “We have nochildren in our party,” the system can decrease the local strain. If thesystem detects that the human responds with no irritation in his or hervoice, the bailout module may determine that the call is back on trackand reset the local strain to a default value or reset to zero.

The global strain for a phone call only accumulates up. Whereas thelocal strain tries to evaluate whether the current correspondence withthe human is strainful, the global strain tries to assess the totalstrain for the entire call. For example, a threshold may be set forthree misunderstandings before the bot bails out to a human operator. Ifthe bot didn't understand the human three times in a row, the localstrain would be high and would cause the bot to bailout. In a differentcall, if the bot didn't understand the other side twice in a row, butdid understand the third sentence, the local strain would get reset onthe third interaction, and the conversation would probably continue. Theglobal strain would still maintain information to indicate that therewere two misunderstandings between the bot and the human. If at a latertime during the call, the bot doesn't understand the human twice in arow again, the global strain level would go above a threshold and thebot will probably bail out, even though the local strain is still belowthe set threshold of three misunderstandings.

As discussed above, if either the local or global strain levels reachsome threshold, the bailout module 136 will indicate to the system 100that it is time for manual intervention or to politely exit from thecall. In some examples, the bailout module 136 would consider an eventas a strain event whenever it needs to repeat itself, apologize, ask forclarification, etc., as well as when the human corrects the system 100or complains about the call (e.g., “I can't hear you, can you hearme?”).

In some examples, the bailout module 136 would consider an event astrain event if the human asks if the bot is a robot, mocks the bot,i.e., by asking nonsensical questions, or acts in some other way thatthe system is not expecting, (e.g., if the system gets asked about asporting event when trying to make a reservation for a restaurant.)

In some implementations, the bailout module 136 is a feature-based ruleset that determines when the system should bailout to manualintervention. One feature-based rule may be a rule that states that whentwo consecutive unknown input intents occur, the system should bailout.A different rule could state that when four unknown input intents occuranywhere during the call, the system bails out to a manual operator. Thesystem keeps track of events occur in the conversation and determineswhether events have happened that meet the criteria of a rule.

In other implementations, the bailout module 136 uses machine learningto predict when to bailout to a human operator automatically. Forexample, the bailout module 136 can receive, as input to one or moremachine learning models, intents from a conversation with a human. Themachine learning models can determine, based on the received intents andhistorical intents and outcomes, whether to bail out to a humanoperator. The system can train the machine learning model on featuresfrom annotate recordings that denote when a bailout should have occurredor should not have occurred. The machine learning module can thenpredict when a bailout should likely occur given a set of inputfeatures.

The bailout module 136 uses many factors to determine bailout including:the conduct of the human, the tone of the human, the determinedannoyance level of the human, the language the human uses, or the wordchoice of the human.

The system 100 can escalate a conversation being conducted by the bot toa human operator to handle. For example, if there is a threshold amountof strain in a particular conversation, the bailout module 136 canprovide feedback data to the flow manager 132. The flow manager 132 mayinstruct the bot to hand the call over to a human operator that providesinput through the operator controller 134, with or without audiblyalerting the human callee. For example, the bot can say “Sure, thank youfor your time today. Here is my supervisor.” A human operator can thencomplete the task that the bot was attempting to carry out through theoperator controller 134.

The bailout module 136 can also determine a confidence level, whichdefines the confidence that the system has in the current task beingaccomplished. For example, the bot may be tasked with making dinnerreservations for a user. If the bot calls the restaurant and the humanasks multiple questions for which the bot does not know the answer, thesystem may have a low confidence in the current task being accomplished.After the system receives a question for which the system does not havean answer, the system's confidence level in accomplishing the task maygo lower. If the system recovers and the system determines that theconversation is moving towards accomplishing a task, the system mayraise the confidence level.

In some implementations, the system hands off the phone conversation toa human operator who monitors calls. The system may alert an operator ofthe need to transition the phone call using an operator user interfaceor some other notification mechanism. Once notified, the operator mayhave a finite time to transition the phone call before the systemdetermines to terminate the call. The system may use the same voice asthe operator. In such cases, the transition from a bot to the operatorcan be transparent for the other side as the voice remains the same.

In other implementations, the system hands off the phone conversation tothe human user who requested the task. The system can alert the user ofthe in-progress phone call. The system can let the user know when thereis a problem with completing the task or when the bot has been asked aquestion to which the bot does not know the answer. The bot may text,email, or in some other way communicate the details of the conversationfor which the bot needs user input. In some implementations, the botwill wait a threshold amount of time, i.e., 5 seconds, for the user torespond before continuing the conversation without user input. Since theconversation is happening in real-time, the bot cannot wait a longperiod of time for user response. In some implementations, the systemmay try to transition the phone call to the requesting user when thesystem has determined that the phone call needs to be transitioned awayfrom the bot. As discussed above, the system may wait a threshold amountof time for the user to respond and take over the phone call. In someimplementations, if the user does not take over the phone call in thethreshold amount of time, the system will transition the phone call toan operator. In other instances, the system will end the phoneconversation. The system may also use the same voice as the human userso that transition from the bot to the user is seamless from the otherside of the conversation.

FIG. 12 shows an example of a computing device 1200 and an example of amobile computing device 1250 that can be used to implement thetechniques described above. The computing device 1200 is intended torepresent various forms of digital computers, such as laptops, desktops,workstations, personal digital assistants, servers, blade servers,mainframes, and other appropriate computers. The mobile computing device1250 is intended to represent various forms of mobile devices, such aspersonal digital assistants, cellular telephones, smart-phones, andother similar computing devices. The components shown here, theirconnections and relationships, and their functions, are meant to beexemplary only, and are not meant to limit implementations of theinventions described and/or claimed in this document.

The computing device 1200 includes a processor 1202, a memory 1204, astorage device 1206, a high-speed interface 1208 connecting to thememory 1204 and multiple high-speed expansion ports 1210, and alow-speed interface 1212 connecting to a low-speed expansion port 1214and the storage device 1206. Each of the processor 1202, the memory1204, the storage device 1206, the high-speed interface 1208, thehigh-speed expansion ports 1210, and the low-speed interface 1212, areinterconnected using various busses, and may be mounted on a commonmotherboard or in other manners as appropriate.

The processor 1202 can process instructions for execution within thecomputing device 1200, including instructions stored in the memory 1204or on the storage device 1206 to display graphical information for a GUIon an external input/output device, such as a display 1216 coupled tothe high-speed interface 1208. In other implementations, multipleprocessors and/or multiple buses may be used, as appropriate, along withmultiple memories and types of memory. Also, multiple computing devicesmay be connected, with each device providing portions of the necessaryoperations (e.g., as a server bank, a group of blade servers, or amulti-processor system).

The memory 1204 stores information within the computing device 1200. Insome implementations, the memory 1204 is a volatile memory unit orunits. In some implementations, the memory 1204 is a non-volatile memoryunit or units. The memory 1204 may also be another form ofcomputer-readable medium, such as a magnetic or optical disk.

The storage device 1206 is capable of providing mass storage for thecomputing device 1200. In some implementations, the storage device 1206may be or contain a computer-readable medium, such as a floppy diskdevice, a hard disk device, an optical disk device, or a tape device, aflash memory or other similar solid state memory device, or an array ofdevices, including devices in a storage area network or otherconfigurations. A computer program product can be tangibly embodied inan information carrier. The computer program product may also containinstructions that, when executed, perform one or more methods, such asthose described above. The computer program product can also be tangiblyembodied in a computer- or machine-readable medium, such as the memory1204, the storage device 1206, or memory on the processor 1202.

The high-speed interface 1208 manages bandwidth-intensive operations forthe computing device 1200, while the low-speed interface 1212 manageslower bandwidth-intensive operations. Such allocation of functions isexemplary only. In some implementations, the high-speed interface 1208is coupled to the memory 1204, the display 1216 (e.g., through agraphics processor or accelerator), and to the high-speed expansionports 1210, which may accept various expansion cards (not shown). In theimplementation, the low-speed interface 1212 is coupled to the storagedevice 1206 and the low-speed expansion port 1214. The low-speedexpansion port 1214, which may include various communication ports(e.g., USB, Bluetooth, Ethernet, wireless Ethernet) may be coupled toone or more input/output devices, such as a keyboard, a pointing device,a scanner, or a networking device such as a switch or router, e.g.,through an network adapter.

The computing device 1200 may be implemented in a number of differentforms, as shown in the figure. For example, it may be implemented as astandard server, or multiple times in a group of such servers. Inaddition, it may be implemented in a personal computer such as a laptopcomputer 1222. It may also be implemented as part of a rack serversystem 1224. Alternatively, components from the computing device 1200may be combined with other components in a mobile device (not shown),such as a mobile computing device 1250. Each of such devices may containone or more of the computing device 1200 and the mobile computing device1250, and an entire system may be made up of multiple computing devicescommunicating with each other.

The mobile computing device 1250 includes a processor 1252, a memory1264, an input/output device such as a display 1254, a communicationinterface 1266, and a transceiver 1268, among other components. Themobile computing device 1250 may also be provided with a storage device,such as a micro-drive or other device, to provide additional storage.Each of the processor 1252, the memory 1264, the display 1254, thecommunication interface 1266, and the transceiver 1268, areinterconnected using various buses, and several of the components may bemounted on a common motherboard or in other manners as appropriate.

The processor 1252 can execute instructions within the mobile computingdevice 1250, including instructions stored in the memory 1264. Theprocessor 1252 may be implemented as a chipset of chips that includeseparate and multiple analog and digital processors. The processor 1252may provide, for example, for coordination of the other components ofthe mobile computing device 1250, such as control of user interfaces,applications run by the mobile computing device 1250, and wirelesscommunication by the mobile computing device 1250.

The processor 1252 may communicate with a user through a controlinterface 1258 and a display interface 1256 coupled to the display 1254.The display 1254 may be, for example, a TFT (Thin-Film-Transistor LiquidCrystal Display) display or an OLED (Organic Light Emitting Diode)display, or other appropriate display technology. The display interface1256 may comprise appropriate circuitry for driving the display 1254 topresent graphical and other information to a user. The control interface1258 may receive commands from a user and convert them for submission tothe processor 1252. In addition, an external interface 1262 may providecommunication with the processor 1252, so as to enable near areacommunication of the mobile computing device 1250 with other devices.The external interface 1262 may provide, for example, for wiredcommunication in some implementations, or for wireless communication inother implementations, and multiple interfaces may also be used.

The memory 1264 stores information within the mobile computing device1250. The memory 1264 can be implemented as one or more of acomputer-readable medium or media, a volatile memory unit or units, or anon-volatile memory unit or units. An expansion memory 1274 may also beprovided and connected to the mobile computing device 1250 through anexpansion interface 1272, which may include, for example, a SIMM (SingleIn Line Memory Module) card interface. The expansion memory 1274 mayprovide extra storage space for the mobile computing device 1250, or mayalso store applications or other information for the mobile computingdevice 1250. Specifically, the expansion memory 1274 may includeinstructions to carry out or supplement the processes described above,and may include secure information also. Thus, for example, theexpansion memory 1274 may be provided as a security module for themobile computing device 1250, and may be programmed with instructionsthat permit secure use of the mobile computing device 1250. In addition,secure applications may be provided via the SIMM cards, along withadditional information, such as placing identifying information on theSIMM card in a non-hackable manner.

The memory may include, for example, flash memory and/or NVRAM memory(non-volatile random access memory), as discussed below. In someimplementations, a computer program product is tangibly embodied in aninformation carrier. The computer program product contains instructionsthat, when executed, perform one or more methods, such as thosedescribed above. The computer program product can be a computer- ormachine-readable medium, such as the memory 1264, the expansion memory1274, or memory on the processor 1252. In some implementations, thecomputer program product can be received in a propagated signal, forexample, over the transceiver 1268 or the external interface 1262.

The mobile computing device 1250 may communicate wirelessly through thecommunication interface 1266, which may include digital signalprocessing circuitry where necessary. The communication interface 1266may provide for communications under various modes or protocols, such asGSM voice calls (Global System for Mobile communications), SMS (ShortMessage Service), EMS (Enhanced Messaging Service), or MMS messaging(Multimedia Messaging Service), CDMA (code division multiple access),TDMA (time division multiple access), PDC (Personal Digital Cellular),WCDMA (Wideband Code Division Multiple Access), CDM252000, or GPRS(General Packet Radio Service), among others. Such communication mayoccur, for example, through the transceiver 1268 using aradio-frequency. In addition, short-range communication may occur, suchas using a Bluetooth, Wi-Fi, or other such transceiver (not shown). Inaddition, a GPS (Global Positioning System) receiver module 2570 mayprovide additional navigation- and location-related wireless data to themobile computing device 1250, which may be used as appropriate byapplications running on the mobile computing device 1250.

The mobile computing device 1250 may also communicate audibly using anaudio codec 1260, which may receive spoken information from a user andconvert it to usable digital information. The audio codec 1260 maylikewise generate audible sound for a user, such as through a speaker,e.g., in a handset of the mobile computing device 1250. Such sound mayinclude sound from voice telephone calls, may include recorded sound(e.g., voice messages, music files, etc.) and may also include soundgenerated by applications operating on the mobile computing device 1250.

The mobile computing device 1250 may be implemented in a number ofdifferent forms, as shown in the figure. For example, it may beimplemented as a cellular telephone 1280. It may also be implemented aspart of a smart-phone 1282, personal digital assistant, tablet computer,wearable computer, or other similar mobile device.

A number of implementations have been described. Nevertheless, it willbe understood that various modifications may be made without departingfrom the spirit and scope of the disclosure. For example, various formsof the flows shown above may be used, with steps re-ordered, added, orremoved.

All of the functional operations described in this specification may beimplemented in digital electronic circuitry, or in computer software,firmware, or hardware, including the structures disclosed in thisspecification and their structural equivalents, or in combinations ofone or more of them. The techniques disclosed may be implemented as oneor more computer program products, i.e., one or more modules of computerprogram instructions encoded on a computer-readable medium for executionby, or to control the operation of, data processing apparatus. Thecomputer readable-medium may be a machine-readable storage device, amachine-readable storage substrate, a memory device, a composition ofmatter affecting a machine-readable propagated signal, or a combinationof one or more of them. The computer-readable medium may be anon-transitory computer-readable medium. The term “data processingapparatus” encompasses all apparatus, devices, and machines forprocessing data, including by way of example a programmable processor, acomputer, or multiple processors or computers. The apparatus mayinclude, in addition to hardware, code that creates an executionenvironment for the computer program in question, e.g., code thatconstitutes processor firmware, a protocol stack, a database managementsystem, an operating system, or a combination of one or more of them. Apropagated signal is an artificially generated signal, e.g., amachine-generated electrical, optical, or electromagnetic signal that isgenerated to encode information for transmission to suitable receiverapparatus.

A computer program (also known as a program, software, softwareapplication, script, or code) may be written in any form of programminglanguage, including compiled or interpreted languages, and it may bedeployed in any form, including as a standalone program or as a module,component, subroutine, or other unit suitable for use in a computingenvironment. A computer program does not necessarily correspond to afile in a file system. A program may be stored in a portion of a filethat holds other programs or data (e.g., one or more scripts stored in amarkup language document), in a single file dedicated to the program inquestion, or in multiple coordinated files (e.g., files that store oneor more modules, sub programs, or portions of code). A computer programmay be deployed to be executed on one computer or on multiple computersthat are located at one site or distributed across multiple sites andinterconnected by a communication network.

The processes and logic flows described in this specification may beperformed by one or more programmable processors executing one or morecomputer programs to perform functions by operating on input data andgenerating output. The processes and logic flows may also be performedby, and apparatus may also be implemented as, special purpose logiccircuitry, e.g., an FPGA (field programmable gate array) or an ASIC(application specific integrated circuit).

Processors suitable for the execution of a computer program include, byway of example, both general and special purpose microprocessors, andany one or more processors of any kind of digital computer. Generally, aprocessor will receive instructions and data from a read only memory ora random access memory or both. The essential elements of a computer area processor for performing instructions and one or more memory devicesfor storing instructions and data. Generally, a computer will alsoinclude, or be operatively coupled to receive data from or transfer datato, or both, one or more mass storage devices for storing data, e.g.,magnetic, magneto optical disks, or optical disks. However, a computerneed not have such devices. Moreover, a computer may be embedded inanother device, e.g., a tablet computer, a mobile telephone, a personaldigital assistant (PDA), a mobile audio player, a Global PositioningSystem (GPS) receiver, to name just a few. Computer readable mediasuitable for storing computer program instructions and data include allforms of non-volatile memory, media and memory devices, including by wayof example semiconductor memory devices, e.g., EPROM, EEPROM, and flashmemory devices; magnetic disks, e.g., internal hard disks or removabledisks; magneto-optical disks; and CD-ROM and DVD-ROM disks. Theprocessor and the memory may be supplemented by, or incorporated in,special purpose logic circuitry.

To provide for interaction with a user, the techniques disclosed may beimplemented on a computer having a display device, e.g., a CRT (cathoderay tube) or LCD (liquid crystal display) monitor, for displayinginformation to the user and a keyboard and a pointing device, e.g., amouse or a trackball, by which the user may provide input to thecomputer. Other kinds of devices may be used to provide for interactionwith a user as well; for example, feedback provided to the user may beany form of sensory feedback, e.g., visual feedback, auditory feedback,or tactile feedback; and input from the user may be received in anyform, including acoustic, speech, or tactile input.

Implementations may include a computing system that includes a back endcomponent, e.g., as a data server, or that includes a middlewarecomponent, e.g., an application server, or that includes a front endcomponent, e.g., a client computer having a graphical user interface ora Web browser through which a user may interact with an implementationof the techniques disclosed, or any combination of one or more such backend, middleware, or front end components. The components of the systemmay be interconnected by any form or medium of digital datacommunication, e.g., a communication network. Examples of communicationnetworks include a local area network (“LAN”) and a wide area network(“WAN”), e.g., the Internet.

The computing system may include clients and servers. A client andserver are generally remote from each other and typically interactthrough a communication network. The relationship of client and serverarises by virtue of computer programs running on the respectivecomputers and having a client-server relationship to each other.

While this specification contains many specifics, these should not beconstrued as limitations, but rather as descriptions of featuresspecific to particular implementations. Certain features that aredescribed in this specification in the context of separateimplementations may also be implemented in combination in a singleimplementation. Conversely, various features that are described in thecontext of a single implementation may also be implemented in multipleimplementations separately or in any suitable subcombination. Moreover,although features may be described above as acting in certaincombinations and even initially claimed as such, one or more featuresfrom a claimed combination may in some cases be excised from thecombination, and the claimed combination may be directed to asubcombination or variation of a subcombination.

Similarly, while operations are depicted in the drawings in a particularorder, this should not be understood as requiring that such operationsbe performed in the particular order shown or in sequential order, orthat all illustrated operations be performed, to achieve desirableresults. In certain circumstances, multitasking and parallel processingmay be advantageous. Moreover, the separation of various systemcomponents in the implementations described above should not beunderstood as requiring such separation in all implementations, and itshould be understood that the described program components and systemsmay generally be integrated together in a single software product orpackaged into multiple software products.

Thus, particular implementations have been described. Otherimplementations are within the scope of the following claims. Forexample, the actions recited in the claims may be performed in adifferent order and still achieve desirable results.

What is claimed is:
 1. A method, comprising: receiving, by an automatedtelephone call triggering module of an automated telephone callinitiating system that is configured to initiate telephone calls andconduct telephone conversations between a bot of the automated telephonecall initiating system and a human representative of an entity, dataindicating a first event; determining, by the automated telephone calltriggering module and using the data indicating the first event, thatthe first event is a specific trigger event (i) that is a detection ofan inconsistency of a value of a field associated with a first datasource and a corresponding value of the field associated with a seconddata source and (ii) that triggers a workflow for the automatedtelephone call initiating system that begins with initiating a telephonecall; selecting, based on the specific trigger event, a particularworkflow from multiple possible workflows, the particular workflowcorresponding to the specific trigger event; and in response toselecting the particular workflow, and executing the particular workflowby (i) automatically initiating, by the automated telephone callinitiating system, a telephone call to an entity specified by theparticular workflow and (ii) determining a correct value of the field byconducting a telephone conversation between the bot of the automatedtelephone call initiating system and a human representative of theentity specified by the particular workflow.
 2. The method of claim 1,wherein the data indicating the first event is provided by a user. 3.The method of claim 1, wherein the specific trigger event includes auser request.
 4. The method of claim 1, wherein the specific triggerevent includes a particular type of event that is one of: a weatherevent, a sporting event, an entertainment event, or a seasonal event. 5.The method of claim 1, wherein the specific trigger event includes atrend detected in search requests submitted to a search engine.
 6. Themethod of claim 1, wherein the specific trigger event includes a passingof a predetermined period of time.
 7. An automated telephone callinitiating system that is configured to initiate telephone calls andconduct telephone conversations between a bot of the automated telephonecall initiating system and a human representative of an entity,comprising: the bot that performs operations comprising: receiving dataindicating a first event; determining, by an automated call triggeringmodule and using the data indicating the first event, that the firstevent is a specific trigger event (i) that is a detection of aninconsistency of a value of a field associated with a first data sourceand a corresponding value of the field associated with a second datasource and (ii) that triggers a workflow for the automated telephonecall initiating system that begins with initiating a telephone call;selecting, based on the specific trigger event, a particular workflowfrom multiple possible workflows, the particular workflow correspondingto the specific trigger event; and in response to selecting theparticular workflow, executing the particular workflow by (i)automatically initiating, by the automated telephone call initiatingsystem, a telephone call to an entity specified by the particularworkflow and (ii) determining a correct value of the field by conductinga telephone conversation between the bot of the automated telephone callinitiating system and a human representative of the entity specified bythe particular workflow.
 8. The system of claim 7, wherein the dataindicating the first event is provided by a user.
 9. The system of claim7, wherein the specific trigger event includes a user request.
 10. Thesystem of claim 7, wherein the specific trigger event includes aparticular type of event that is one of: a weather event, a sportingevent, an entertainment event, or a seasonal event.
 11. The system ofclaim 7, wherein the specific trigger event includes a trend detected insearch requests submitted to a search engine.
 12. The system of claim 7,wherein the specific trigger event includes a passing of a predeterminedperiod of time.
 13. At least one non-transitory computer-readablestorage medium encoded with executable instructions that, when executedby at least one processor, cause the at least one processor to performoperations comprising: receiving, by a call an automated telephone calltriggering module of an automated telephone call initiating system thatis configured to initiate telephone calls and conduct telephoneconversations between a bot of the automated telephone call initiatingsystem and a human representative of an entity, data indicating a firstevent; determining, by the automated telephone call triggering moduleand using the data indicating the first event, that the first event is aspecific trigger event (i) that is a detection of an inconsistency of avalue of a field associated with a first data source and a correspondingvalue of the field associated with a second data source and (ii) thattriggers a workflow for the automated telephone call initiating systemthat begins with initiating a telephone call; selecting, based on thespecific trigger event, a particular workflow from multiple possibleworkflows, the particular workflow corresponding to the specific triggerevent; and in response to selecting the particular workflow, executingthe particular workflow by (i) automatically initiating, by theautomated telephone call initiating system, a telephone call to anentity specified by the particular workflow and (ii) determining acorrect value of the field by conducting a telephone conversationbetween the bot of the automated telephone call initiating system and ahuman representative of the entity specified by the particular workflow.14. The non-transitory computer-readable storage medium of claim 13,wherein the specific trigger event is a user request.
 15. Thenon-transitory computer-readable storage medium of claim 13, wherein thespecific trigger event includes a particular type of event that is oneof: a weather event, a sporting event, an entertainment event, or aseasonal event.
 16. The non-transitory computer-readable storage mediumof claim 13, wherein the specific trigger event includes a trenddetected in search requests submitted to a search engine.
 17. Thenon-transitory computer-readable storage medium of claim 13, wherein thespecific trigger event includes a passing of a predetermined period oftime.